package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.ProductCatalog;
import cn.wolfcode.trip.base.query.ProductCatalogQuery;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductCatalogMapper {
    //删
    int deleteByPrimaryKey(Long id);

    //增
    int insert(ProductCatalog record);

    //查单
    ProductCatalog selectByPrimaryKey(Long id);

    //查所有目录
    List<ProductCatalog> selectAll();

    //改
    int updateByPrimaryKey(ProductCatalog record);

    //分页
    List<ProductCatalog> selectForList(ProductCatalogQuery qo);

    //查询最大的序号
    int selectMaxSequence(Long id);

    //获取所有热门状态的目录
    List<ProductCatalog> selectAppAll(@Param("state") Integer state);
}